# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-shortwave
pkgver=1.1.1
pkgrel=2
pkgdesc="Listen to internet radio"
url="https://gitlab.gnome.org/World/Shortwave"
# s390x and riscv64 blocked by rust/cargo
arch="all !s390x !riscv64"
license="GPL-3.0-only"
depends="gst-libav gst-plugins-bad gst-plugins-good"
makedepends="meson gettext cargo glib-dev gtk+3.0-dev libhandy-dev gstreamer-dev
	openssl1.1-compat-dev sqlite-dev gst-plugins-base-dev gst-plugins-bad-dev"
checkdepends="appstream-glib desktop-file-utils"
source="https://gitlab.gnome.org/World/Shortwave/uploads/df12909bb42afbff933e45da0f220eb4/shortwave-$pkgver.tar.xz"
subpackages="$pkgname-lang"
builddir="$srcdir/shortwave-$pkgver"

build() {
	abuild-meson \
		-Dprofile=default \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="365f28fcc610c22f177f1deb2dc57bad5547b7fffed0ffcb20c5b14fd961584315bb7129b4c5f27673ab79f549e57d00b644afac8a9002ba1daeb7eac7d588bb  shortwave-1.1.1.tar.xz"
